<?php
/*
 * @Author: your name
 * @Date: 2020-10-28 23:24:16
 * @LastEditTime: 2020-11-12 09:41:18
 * @LastEditors: Please set LastEditors
 * @Description: 系统伪装模块路由
 * @FilePath: /special/route/module/disguise.php
 */

 Route::group('disguise',  function () use ($route) {
    $route = $route . '.' . 'disguise';
    //主机管理
    Route::group('host',  function () use ($route) {
        $route = $route . '.' . 'DisguiseHost';
        //主机列表
        Route::rule('list', $route . '/' . 'list');
    });

    //模块关系管理
    Route::group('relation',  function () use ($route) {
        $route = $route . '.' . 'DisguiseModuleRelation';
        //未添加netfilter模块主机列表
        Route::rule('list', $route . '/' . 'list');
        //主机添加模块
        Route::rule('add', $route . '/' . 'add');
        //主机删除模块
        Route::rule('delete', $route . '/' .  'del');
    });

    //端口伪装设置
    Route::group('set',  function () use ($route) {
        $route = $route . '.' .  'DisguiseSet';
        //关闭端口伪装
        Route::rule('off', $route . '/' . 'off');
        //开启端口伪装
        Route::rule('on', $route . '/' . 'on');//开启
        //配置伪装端口
        Route::rule('modify', $route . '/' . 'configModify');
        //获取端口伪装详情
        Route::rule('info', $route . '/' . 'configInfo');
        //开启伪装端口详情
        Route::rule('port/list', $route . '/' . 'list');
    });
    
});